package sk.isomi.regex;

public class Regex {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		String age = "10";
		String email = "jan.skulavik@openit.sk.";
		String birthNumber = "222222/1111";
		
		
		System.out.println(age.matches("^\\d+$"));
		System.out.println(birthNumber.matches("^\\d{6}/\\d{3,4}$"));

		System.out.println(email.matches("^[\\w._]+@[\\w._]+\\w{2,4}"));
		
	}

}
